﻿using Insesoft.Entities;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace InseSoft.Tests.Unit.Entities
{
    [TestClass]
    public class EntidadCatalogoTest
    {
        #region TestClass
        internal class TestClass : EntidadCatalogo
        {
        }
        #endregion

        [TestMethod]
        public void ToString_NullName_ReturnsEmptyString()
        {
            var cliente = new TestClass { Nombre = null };

            var result = cliente.ToString();

            Assert.AreEqual(string.Empty, result);
        }

        [TestMethod]
        public void ToString_NonEmptyName_ReturnsName()
        {
            const string expectedValue = "AnyName";
            var cliente = new TestClass { Nombre = expectedValue };

            var result = cliente.ToString();

            Assert.AreEqual(expectedValue, result);
        }
    }

    

}
